<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html" xmlns:th="http://www.thymeleaf.org">
<head th:replace="/navbar::header(信息修改)">
</head>
<body>
<!--导航-->
<nav th:replace="/navbar::naver"></nav>
<!--内容-->
<div class="hdd" style="margin-bottom: 7%">
    <ul class="nav navbar-nav mr-auto mt-2 mt-lg-0">
        <li><a class="a" style="color: #000000" th:href="@{/user/control}">用户信息页</a></li>
        <li><a class="a" style="color: #000000" th:href="@{/user/control1}">订单</a></li>
        <li style="background-color:#00acee"><a class="a" style="color: #000000" th:href="@{/user/control2}">修改</a></li>
    </ul>
</div>
<div class="hdd2">
    <form method="POST" style="margin-left: 32%;margin-top:6%;border-radius: 2px 2px 2px 2px;width: 450px;height: 350px;background-color: rgba(0, 0, 0, 0.1)" th:action="@{/user/control2s}">
        <br>
        <h5 style="margin-left: 0;margin-top: 20px">修改信息</h5>
        <p></p>
        <div class="form-group" style="width: 80%;margin-left: 10%">
            <input class="form-control" placeholder="用户名称" th:name="uName" th:type="text" th:value="${user.UName}">
        </div>
        <br>

        <div class="form-group" style="width: 80%;margin-left: 10%">
            <input class="form-control" placeholder="用户密码" th:name="uPassword" th:type="text" th:value="${user.UPassword}">
        </div>
        <br>
        <div class="form-group" style="width: 80%;margin-left: 10%">
            <input class="form-control" placeholder="电话号码" th:name="number" th:type="text" th:value="${user.number}">
        </div>
        <br>
        <div class="form-group" style="width: 20%;margin-left: 10%">
            <select class="form-control" th:name="gender"  th:value="${user.gender}">
                <option th:value="男">男</option>
                <option th:value="女">女</option>
            </select>
        </div>
        <br>
        <br>
        <button class="btn btn-info" onclick="if (!(confirm('你确定要修改信息吗'))) return false" style="margin-left: 0" type="submit">确定修改</button>
        <a class="btn btn-danger" style="margin-left: 25%" th:href="@{/control}">取消修改</a>
    </form>
</div>
<!--页尾-->
<footer th:replace="/navbar::footer"></footer>
</body>
</html>